<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- <meta name="viewport" content="width=device-width, initial-scale=0.5,maxinum-scale=0.5, mininum-scale=0.5,user-scalable=no"> -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0,maxinum-scale=1.0, mininum-scale=1.0,user-scalable=no">
 

    <!-- <meta name="viewport" content="initial-scale=0.3"> -->
    <title>Document</title>
    <link rel="stylesheet" href="css/normalize.css">
    <script src="libs/rem.js"></script>
    <script src="libs/border1px.js" ></script>
    <style>
        .mask {
            width:100%;
            height:100vh;
            background-color: black;
            opacity: 0.27;
            position: fixed;
            top:0;
            left:0
        }
    </style>
</head>
<body>
    <div class="mask"></div>
    <button>点透按扭</button>
    <a href="https://www.baidu.com">点透链接</a>
    <input type="text" />
    <!-- <script src="libs/zepto.js"></script>
    <script src="libs/event.js"></script>
    <script src="libs/touch.js"></script> -->
    
    <!-- <script src="libs/fastclick.js"></script> -->
    <script>
        // FastClick.attach(document.body)
        var mask = document.querySelector('.mask');

        // mask.addEventListener('touchstart', function (e) {
        //     // setTimeout(function () {
        //     //     this.style.display = 'none';
        //     // }.bind(this),300);

        //     this.style.display = 'none';

        // })

        // $('.mask').off('tap').on('tap', function (){
        //     this.style.display = 'none';
        // })


        // mask.addEventListener("click", function () {
        //     this.style.display = 'none';
        // })

        mask.addEventListener("tap", function (e) {
            // e.preventDefault();
            this.style.display= 'none';
        })
        
    </script>
</body>
</html>